package com.joker.aigc.controller;


import com.joker.aigc.domain.entity.R;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@Tag(name = "hello")
public class HelloController {

    @RequestMapping(value = "/hello", method = {RequestMethod.POST, RequestMethod.GET})
    public String hello() {
        return "你好呀,hello";
    }

    @RequestMapping(value = "/error", method = {RequestMethod.POST, RequestMethod.GET})
    public R<String> error() {
        return R.error();
    }
}
